/**
 * Created by GG on 2017/4/1.
 */
window.onload=function(){
	 $(".bg-pic").attr("src","../img/bgi4.jpg");
  //$(".bg-pic").attr("src","../img/static/bgi3.jpg");
	$(".nav span").css("border-bottom","0px");
	$(".event").css("border-bottom","5px solid #e4006e");
	$(".content").css({"display":"block","border-radius": "12px"});
	$(".news-page").css("display","none")
	$(".paged").css("display","none")
	$(".news-details-page").css("display","none");
	$(".details-control").css("display","none");
	$(".jianjie").css("display","none");
	$(".youshi").css("display","none");
	$(".aboutuscont").css("display","block");
	$(".subnav ol").css("display", "none");
	$(".productcont").css("display","none");
	$(".introcont").css("display","none");

	$(".box .subnav ol.product").css("display","block");

	$(".box .subnav ol.product li").click(function (){
		var index = Number($(this).attr("index"));
		$(".subnav ol.intro li").removeClass('cur');
		$(this).addClass('cur');
		console.log(index);
		$(".productcont").css("display","none");
		$(".item"+(index)).css("display","block");
	})
	$(".item0").css("display","block");
	var joblazy = {
		pagerows:10,
		requestUrl: "http://op.admin.jufan.tv/api/jobList?callbackname=?",
		init: function(objHtml) {
			this.getList(objHtml);
		},
		showData: function (dataList, objHtml){
			var str = "";
			$.each(dataList, function (i, item){
				str += '<p><a href="../html/jobdetail.html?id='+item.id+'">'+item.name+'</a><span>'+item.role+'</span><span>'+item.working_place+'</span><span>'+item.pub_date+'</span></p>'
			})
			$(str).appendTo(objHtml);
		}
	}
	Object.setPrototypeOf(joblazy, lazyload);
	joblazy.init(".joblist-cont");

}

